package com.web.portal.services.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.web.portal.mapper.LabelInfoMapper;
import com.web.portal.pojo.LabelInfo;
import com.web.portal.pojo.PortalUser;
import com.web.portal.services.LabelInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LabelInfoServiceImpl extends ServiceImpl<LabelInfoMapper, LabelInfo>
        implements LabelInfoService {

    @Autowired
    private LabelInfoMapper labelInfoMapper;

    @Override
    public LabelInfo selectByLabelCode(String labelCode) {
        QueryWrapper<LabelInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("label_code", labelCode);
        return labelInfoMapper.selectOne(queryWrapper);
    }
}
